﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LabMS.Common
{
    public class GradeHelper
    {
         static public List<string> GetCurrentGrade(int Year, int Semester, bool bChar)
        {
            List<string> listYear = new List<string>();
            string strChar = "";
            if (bChar)
            {
                strChar = "级";
            }
            if (Semester == 1)
            {
                for (int i = 1; i < 5; ++i)
                {
                    int iYear = Year - i;
                    listYear.Add(iYear.ToString() + strChar);
                }
            }
            else
            {
                for (int i = 0; i < 4; ++i)
                {
                    int iYear = Year - i;
                    listYear.Add(iYear.ToString() + strChar);
                }
            }
            return listYear;
        }
    }
}
